import { ApiProperty } from '@nestjs/swagger';

export enum PhotoStatus {
  Publish,
  Private,
  Deleted,
}

export class Photo {
  @ApiProperty({ example: 'Summer', description: '照片的名字' })
  name: string;

  @ApiProperty({ example: 'Summer description', description: '照片的描述' })
  description: string;

  @ApiProperty({ example: 'Summer.png', description: '照片的文件名' })
  filename: string;

  @ApiProperty({ example: 'Summer', description: '照片的访问次数' })
  views: string;

  @ApiProperty({
    example: 'Publish',
    description: '是否公开展示',
    enum: PhotoStatus,
  })
  isPublished: PhotoStatus;
}
